#include <iostream>
using namespace std;
class HArray
{
public:
    int _a[3];
    HArray(int a, int b, int c)
    {
        _a[0] = a;
        _a[1] = b;
        _a[2] = c;
    }
    int operator[](const int i)
    {
        return (_a[i] * _a[i]);
    }
};
int main()
{
    int a, b, c;
    cin >> a >> b >> c;
    HArray h1(a, b, c);
    int d = h1[0] + h1[2];
    cout << d << endl;
    return 0;
}